import scrapy


class CarSpider(scrapy.Spider):
    name = "car"
    allowed_domains = ["www.autohome.com.cn"]
    start_urls = ["https://www.autohome.com.cn/price/brandid_15"]

    def parse(self, response):
        print("**************************************************sc")
        listcar=response.xpath('//div/div/div//div/div/div/div/div/div/div/div/a/text()')
        for car in listcar:
            print(car.extract())

